﻿namespace MSP.Graph
{
    public class Message
    {
        #region Properties
		 
        private IDisCOPNode m_fromNode;
        public IDisCOPNode FromNode 
        { 
            get { return m_fromNode; } 
            set { m_fromNode = value; } 
        }


        private IDisCOPNode m_toNode;
        public IDisCOPNode ToNode 
        { 
            get { return m_toNode; }
            set { m_toNode = value; } 
        }


        private object m_data;
        public object Data 
        { 
            get { return m_data; } 
            set { m_data = value; } 
        }

	    #endregion  // Properties


        #region Constructor

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="fromNode - The node that sent the message"></param>
        /// <param name="toNode - The node that is to target of the message"></param>
        /// <param name="data - The message"></param>
        public Message(IDisCOPNode fromNode, IDisCOPNode toNode, object data)
        {
            m_fromNode = fromNode;
            m_toNode = toNode;
            m_data = data;
        }

        #endregion  // Constructor
    }
}
